export interface requestdata{
    sn:string;
    starttime:Date;
    endtime:Date;
}
export class Vehicle {
    async GetBodyStringAsync(reqdata:requestdata):Promise<string> {
        let reqHeaders = new Headers({"Content-Type":"application/json"});
        let x = await fetch(`http://api.airdwing.cn/api/data?sn=${reqdata.sn}&starttime=${reqdata.starttime.toJSON()}&endtime=${reqdata.endtime.toJSON()}`);
        return await x.text();
    }
}